home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_1 / sea < prev    next >
Text File  |  1995-03-31  |  6KB  |  83 lines

  1. @
  2. @     'Sea Animation'             November 24, 1990
  3. @        by Kerry E. Wilkinson
  4. @
  5. @ This is a pretty simple example of multiple GROB animation.
  6. @ The SHIP GROB is a sunken ship, BOTTOM is 3 different ocean floor
  7. @ images, and SCHOOL is an animation sequence of some fish.
  8. @ Just hit ANIM to execute. I have to apologize about the programming
  9. @ of this module. I am just starting to get the hang of the graphics
  10. @ on the HP48-SX. By the way, all of these images were created using
  11. @ a program I wrote called ImageMaker(c). This is a sprite editor
  12. @ and animator I wrote for the MS-DOS machines. It allows you to create
  13. @ up to 18 animated images (sprites) that you can port into your
  14. @ own programs by using either Borland's or Microsoft's putimage() functions.
  15. @ It works in EGA and VGA from 320x200 256 colors up through
  16. @ 640x480 16 colors, and is mouse and icon driven, with dialog and file
  17. @ select boxes. I sell it shareware for $25.00 (it is up to version 3.0
  18. @ with over 2 years of sporadic programming). This past weekend I modified
  19. @ it to create ASCII GROB files, if there is just one image it saves it
  20. @ as a single grob, if there are multiple it saves them as a list of GROBs.
  21. @ I will upload a limited 'free' version for the HP48 owners. You can create
  22. @ your images and they will be saved in a file called 'grob.hp'. The program
  23. @ will be crippled in that you will not be able to save the image in the 
  24. @ format that would allow you to edit it again later. I am sorry about this,
  25. @ but I would be doing a disservice to all of the registered users of 
  26. @ ImageMaker(c). Remember that any non black color (color value 0) will have
  27. @ the pixel set on the HP end. Maybe HP will someday come out with a color
  28. @ LCD version. The file SEA may be distributed without cost. You can use parts
  29. @ or all of it for whatever purpose you wish, but I, Kerry E. Wilkinson, will
  30. @ not be held responsible for any damages occuring directly, or indirectly, from
  31. @ its use.
  32. @
  33. @ When you are looking at this animation, please remember that I am a
  34. @ programmer, not an artist.
  35. @                    Kerry
  36.  
  37. %%HP: T(3)A(D)F(.);
  38. DIR
  39.   ANIM
  40.     \<< ERASE # 181d
  41. # 64d PDIM { # 50d
  42. # 0d } PVIEW BOTTOM
  43. OBJ\-> DROP PICT {
  44. # 30d # 56d } ROT
  45. REPL PICT { # 90d
  46. # 56d } ROT REPL
  47. PICT { # 150d # 56d
  48. } ROT REPL PICT {
  49. # 90d # 24d } SHIP
  50. REPL
  51.       DO PICT {
  52. # 0d # 0d } # 46d
  53. # 30d BLANK REPL
  54. 170 'U' STO
  55.         WHILE U
  56.         REPEAT
  57. SCHOOL OBJ\-> 1 SWAP
  58.           START 'U'
  59. DECR DROP PICT U
  60. R\->B # 4d 2 \->LIST
  61. ROT REPL
  62.           NEXT
  63.         END
  64.       UNTIL 0
  65.       END
  66.     \>>
  67.   U 137
  68.   BOTTOM {
  69. GROB 60 8 00000000000000000000000000608000002000000B70E000003004C0E13020000010064CFF10B0000C0C11CFFF38F70016EFFFFFFFFFFF00FFFFFFFFFFFFFFF0
  70. GROB 60 8 000000600000000000000830000000000004060030100800000783481804040000F1A87C080606000EFF3C00FF030280EFFFFFFFFFFFF1E0FFFFFFFFFFFFFFF0
  71. GROB 60 8 00000103000000000000018100000000000001C1708106000040C1FB90C0030000C0EFF7C360830000C0EFFFFF704F10C78FFFFFFFF3FF70FFFFFFFFFFFFFFF0
  72. }
  73.   SCHOOL {
  74. GROB 46 30 000000000000000000000000000010000000000000000000000420000000000C30084000000020000000000000040000000000000000000000010000000000000000000000004000000000CF6000000000CF30000000008F3000000000006000000000004000000000000000000010000000000000000040000000000000000400000000000000000050000000000070008FB0000040008FF0000000000F700000000000C0000000000080000000000000000000
  75. GROB 46 30 000000000000000000000000000000000000000800000000000020000000000C300000000000200420000000000000000000000200000000000000000000008000000000000040000000008F6000000000CF30000000008F3000000000006000000000004000000000000000000000000080000800000000000000000020000400000000000000000040000100000070000FB0000040008FF0000000000F700000000000C0000000000080000000000000000000
  76. GROB 46 30 000000000000000020000000000000000000000000000000000420000000000C300000000000200000000000000210000000000000000000000100000000000000000000004040000000008F6000000000CF30000000008F3000000000006000000000004000000000000000000000000000000010000040000400000000000000000010000200000040000000000070008FB0000040008FF0000000000F700000000000C0000000000080000000000000000000
  77. GROB 46 30 000000000000000000000000000010000000000000000000000020000000000C30001000000020000000000000000000000000090000000000000000000000800000000000004000000000AF6000000000CF30000000008F3000000000006000000000004000000000000000000000000000000010000000000400000020000000000000000200000840000000000070008FB0000040008FF0000000000F700000000000C0000000000080000000000000000000
  78. GROB 46 30 000000000000000000000000000000000000000800000000000020000000000C300000000000200800000000000000000000000000000000008400000000000000000000004040000000008F6000000000CF30000000008F3000000000006000000000004000000000000000000000000000000000000000000800000000000200000010000000000040000100000070000FB0000040008FF0000000000F700000000000C0000000000080000000000000000000
  79. }
  80.   SHIP
  81. GROB 60 40 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300004000000080C100004000000080700000C00000818C100000800000038F00000081000003C308070083000012FA08C1000200001ABA0870000600001E9B0E10000E00001FB98B00000C100093F9C900000C3000D3C9D80000043000F28B70700004F1007A0F30F1000C63083A9E1CF700086E0C349F1FF81008817E2499BD721008078720D0FE3720080C9F20707F14200801F930789F23200030836838D77E2000380E6830732C300030081E2817087000204E072604007000600A930F0C1F30004006E1C880F9100040E4C07EC00C0000E0C9F763900F0004C74E74C99CC7C097CF36C36484FFF0FFFFFFFFFFFFFFF0
  82. END
  83.